/**
 *  Eclipse Public License 1.0
 */
package org.fireblade.easysms;

import java.io.BufferedWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * append new line after every write
 */
public class BufferedLineBreakWriter extends BufferedWriter {

  /**
   * @param out
   * @param size
   */
  public BufferedLineBreakWriter(Writer out, int size) {
    super(out, size);
  }


  /*
   * (non-Javadoc)
   * @see java.io.Writer#write(java.lang.String)
   */
  @Override
  public void write(String str) throws IOException {
    // TODO Auto-generated method stub
    super.write(str);
    super.write(Util.NEWLINE);
  }


  /*
   * (non-Javadoc)
   * @see java.io.BufferedWriter#write(java.lang.String, int, int)
   */
  @Override
  public void write(String str, int offset, int count) throws IOException {
    // TODO Auto-generated method stub
    super.write(str, offset, count);
  }


  /*
   * (non-Javadoc)
   * @see java.io.Writer#write(char[])
   */
  @Override
  public void write(char[] buf) throws IOException {
    // TODO Auto-generated method stub
    super.write(buf);
  }


  /*
   * (non-Javadoc)
   * @see java.io.BufferedWriter#write(char[], int, int)
   */
  @Override
  public void write(char[] cbuf, int offset, int count) throws IOException {
    // TODO Auto-generated method stub
    super.write(cbuf, offset, count);
  }
}
